package se.zust.edu.cn;

public class EmailMessageServiceImpl implements MessageService {
    private String smtp;
    private String userName;
    private String password;

    public EmailMessageServiceImpl(String smtp, String userName, String password) {
        this.smtp = smtp;
        this.userName = userName;
        this.password = password;
    }

    @Override
    public boolean sendMsg(Message message) {
        System.out.println("邮件消息发送: " + message.getContent());
        return true;
    }
}